﻿@model IEnumerable<QRCode.Models.SalesPromotionQuestion>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>

    @if (ViewBag.AllowAdd == "Y") {
     @Html.ActionLink("Create New", "Create", new { SalesPromotionID=ViewBag.SalesPromotionID }, null)
    }

</p>


    <H1>SalesPromotionID = @ViewBag.SalesPromotionID</H1>


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Active)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Active)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID}) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
